﻿using System;
using System.Xml.Serialization;
#if (WINRT)
using Windows.UI.Xaml.Markup;
#else
using System.Windows.Markup;
#endif

namespace nRoute.SiteMaps
{
#if (!SILVERLIGHT && !WINRT)
    [Serializable]
#endif
    [XmlRoot(Namespace = SiteMaps.XMLNAMESPACE)]
#if (WINRT)
    [ContentProperty(Name = "ChildNodes")]
#else
    [ContentProperty("ChildNodes")]
#endif
    public class ActionNode
         : SiteMapNode
    {
        public event EventHandler Executed;
        
#region Overrides

        public override void Execute()
        {
            if (Executed != null) Executed(this, EventArgs.Empty);
        }

#endregion

    }
}
